package com.ad_hccm.service.impl.Appendix;

import com.ad_hccm.dao.Appendix.SAEDao;
import com.ad_hccm.domain.Appendix.AE;
import com.ad_hccm.domain.Appendix.SAE;
import com.ad_hccm.service.Appendix.SAEService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 严重不良事件(SAE)报告表
 */
@Service
public class SAEServiceImpl implements SAEService {
    @Autowired
    private SAEDao dao;

    @Override
    public boolean save(SAE domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(SAE domain) {
        return dao.update(domain);
    }

    @Override
    public List<SAE> getById(String id) {
        return dao.getById(id);
    }

    @Override
    public SAE getWeek(SAE domain){return dao.getWeek(domain);}

    @Override
    public List<SAE> getAll(String id) {
        return dao.getAll(id);
    }

    @Override
    public boolean delete(SAE domain) {
        return dao.delete(domain);
    }

    @Override
    public boolean deleteBigWeek(SAE domain) {
        return dao.deleteBigWeek(domain);
    }

    @Override
    public List<SAE> search(String search, String id) {
        return dao.search(search,id);
    }
}
